
import java.util.logging.Level;
import java.util.logging.Logger;
import main.DBmodels.StatisticRow;
import main.DBmodels.User;
import main.prefExceptions.DAOException;
import main.util.DAO;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Ariman
 */
public class TestMain {
    
    public static void main(String[] args) {
        DAO dao = new DAO();
       User user = new User("zxc", "zxc", "zxc@zxc.zxc");
        try {
            //        User user = new User(7l, "123", "222", "444");
                   dao.addUser(user);
            //        StatisticRow row = new StatisticRow(2,3, 240, 30);
            //        dao.addStatisticForUser(user, row);
            //        row.setGames_played(5);
            //        row.setMountain(5);
            //        dao.updateStatisticForUser(user, row);
            //        dao.removeUser(user);
            //        dao.removeUser(user);
        } catch (DAOException ex) {
            Logger.getLogger(TestMain.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
